package com.bear.cmcc.NetTestHTTP.component;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 存放数据
 * @author meizhen.xu
 *
 */
public class DataBean implements Serializable {

	private List<Object> list;//数据链表
	private int count;//当前数据库链表的记录数
	
	public DataBean(){
		this.list = new ArrayList<Object>();
	}
	
	public void addObject(Object b){
		list.add(b);
	}
	
	public Object getItem(int i){
		return list.get(i);
	}
	
	public void clear(){
		if(list!=null)
			list.clear();
	}
	
	public int getCount() {
		if(list!=null){
			return list.size();
		}else{
			return 0;
		}
	}

	
}
